package com.meilai.project.service.media;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.business.installOrder.MediaManualLockDTO;
import com.meilai.project.entity.media.MediaPointOccupySnapshot;
import com.meilai.project.vo.business.installOrder.MediaPointLockDateRangeVO;

import java.util.List;

/**
 * <p>
 * 点位占用快照 服务类
 * </p>
 *
 * @author 张驰
 * @since 2022-01-25
 */
public interface MediaPointOccupySnapshotService extends IService<MediaPointOccupySnapshot> {

	List<MediaPointLockDateRangeVO> listOccupyByMediaId(Long media_point_id);

	void submitManualLock(MediaManualLockDTO req);

	void releaseManualLockManualLock(Long chooseId);

	/**
	 * 根据传入的点位集合返回今天被占用的点位id集合
	 * @param ids
	 * @return
	 */
	List<Long> getLockPointIdsByIds(List<Long> ids);
}
